<template>
    <view class="flex-com" v-if="info.list && info.list.length > 0">
        <image class="fbg" :src="$imgUrl + item.img" mode="widthFix" v-for="(item, index) in info.list" :key="index" @click.stop="go(item)"></image>
    </view>
</template>

<script setup>

const { proxy } = getCurrentInstance()

const props = defineProps({
	info: { type: Object, default: {} }
})
const {info} = toRefs(props)

function go(item) {
    let url = item.url || item.link
    proxy.$go(url)
}

</script>

<style lang="scss" scoped>
.flex-com {
    width: 100%;
    height: auto;
    position: relative;
    margin-top: -2rpx;
    display: flex;
    .fbg {
        flex: 1;
        height: auto;
    }
}
</style>
